package org.hydrakyoufeng.stuplatform.service;

import org.hydrakyoufeng.stuplatform.utils.ResultEntity;

public interface QiniuService {

    /**
     * 获取公有空间的上传Token
     * @return
     * @throws Exception
     */
    ResultEntity getToken() throws Exception;

    /**
     * 获取私有空间的上传Token
     * @return
     * @throws Exception
     */
    ResultEntity getTokenSecret() throws Exception;

    /**
     * 根据文件的key，获取防盗链地址
     * @param key
     * @return
     * @throws Exception
     */
    ResultEntity<String> getSourceURL(String key) throws Exception;
}
